package com.example.demo;

public class TestInteger {

    public static void main(String[] args) {

        int a = 127;
        int b = 127;
        System.out.println("a = b 是"+(a==b));

        int a1 = 130;
        int b1 = 130;
        System.out.println("a1 = b1 是"+(a1==b1));

        Integer a2 = 127;
        Integer b2 = 127;
        System.out.println("a2 = b2 是"+(a2==b2));

        Integer a3 = 130;
        Integer b3 = 130;
        System.out.println("a3 = b3 是"+(a3==b3));
    }

}
